Changing default Attribute features

When one selects Edit | Attributes | New, the dialog that is displayed has Affect Change Bars, Affect Change Dates and Generate History already checked. Is there any means of modifying this behavior such that when the dialog is displayed, none of these items (or a different set of them) are checked. The last thing we want is for the Baseline indicator to reflect change when the only thing that has changed is some unrelated attribute.
dedawson - Mon Mar 26 20:26:55 EDT 2012

Re: Changing default Attribute features
Chris Annal - Mon Aug 10 09:50:31 EDT 2015

I haven't seen any replies to this question and I have the same question about changing the default behavior of that dialog box. As a workaround, I did write a script that will set all "non-system" attributes to uncheck the "affects change bars" option. Since attributes that are created by users are "non-system", this will change all of those and leave "system" attributes (like Object Text) alone so that changes to them will still affect the change bars, etc. Here it is, if you think this may be useful until a better solution comes along....

/*
Here's a basic script that will uncheck the "Affect Change Bars" property on all non System and 
Non DXL type attribute definitions within a module. 
It assumes that you have access rights to modify these attribute definitions.

Chris Annal Saab Sensis 2015
*/

AttrType at
AttrDef ad
for ad in current Module do {
    if (ad.system) {
                print ad.name " [SYSTEM ATTR - No Change]\n\n" //Cannot modify built-in System attributes
                }
        elseif (ad.dxl) print ad.name " [DXL ATTR - No Change]\n\n" //Not applicable to DXL attributes
 
        else {
                ad = modify(ad, setBars, false) //Apply to Custom defined attributes only
                print ad.name " [CUSTOM ATTR - Change applied]\n\n"
                }
 
 }

Re: Changing default Attribute features
Wolfgang Uhr - Mon Aug 10 10:08:57 EDT 2015

Chris Annal - Mon Aug 10 09:50:31 EDT 2015

I haven't seen any replies to this question and I have the same question about changing the default behavior of that dialog box. As a workaround, I did write a script that will set all "non-system" attributes to uncheck the "affects change bars" option. Since attributes that are created by users are "non-system", this will change all of those and leave "system" attributes (like Object Text) alone so that changes to them will still affect the change bars, etc. Here it is, if you think this may be useful until a better solution comes along....

/*
Here's a basic script that will uncheck the "Affect Change Bars" property on all non System and 
Non DXL type attribute definitions within a module. 
It assumes that you have access rights to modify these attribute definitions.

Chris Annal Saab Sensis 2015
*/

AttrType at
AttrDef ad
for ad in current Module do {
    if (ad.system) {
                print ad.name " [SYSTEM ATTR - No Change]\n\n" //Cannot modify built-in System attributes
                }
        elseif (ad.dxl) print ad.name " [DXL ATTR - No Change]\n\n" //Not applicable to DXL attributes
 
        else {
                ad = modify(ad, setBars, false) //Apply to Custom defined attributes only
                print ad.name " [CUSTOM ATTR - Change applied]\n\n"
                }
 
 }

Hi

This is an error in the dialog box. The  checkboxes are allways activated but the internal behaviour of doors is dfferent.

Take any attribute for example and deactivate those properties. And the check those values by a dxl script. Then you will see that those properties are deactivated.

If you open the dialog box again, the checkboxes are checked.

Best regards

Wolfgang

Re: Changing default Attribute features
llandale - Mon Aug 10 16:56:11 EDT 2015

I'm using DOORS v9521.

When I "edit" an existing attribute the dialog is properly populated with the existing properties of the existing attribute.

When I create a "new" attribute I get consistent default values on the properties box (notably "type" text and object).  When I create another "new" one I get mostly the same properties as the one I just created (notably "type" and object/module), but the 3 History/ChangeBars/ChangeDates are all turned on.

I have a nagging memory of an older version of DOORS had problems with that dialog.

Dare I suggest you keep some "template" module up to date and use some "copyAtts.dxl" to push these down to the modules; or use the template to create the new module.  Having typical users creating attributes is a disaster; if for no other reason than it supports the mind set they don't have to follow project policies.

-Louie

Re: Changing default Attribute features
Yoda101 - Mon Sep 18 08:35:26 EDT 2017

llandale - Mon Aug 10 16:56:11 EDT 2015

I'm using DOORS v9521.

When I "edit" an existing attribute the dialog is properly populated with the existing properties of the existing attribute.

When I create a "new" attribute I get consistent default values on the properties box (notably "type" text and object).  When I create another "new" one I get mostly the same properties as the one I just created (notably "type" and object/module), but the 3 History/ChangeBars/ChangeDates are all turned on.

I have a nagging memory of an older version of DOORS had problems with that dialog.

Dare I suggest you keep some "template" module up to date and use some "copyAtts.dxl" to push these down to the modules; or use the template to create the new module.  Having typical users creating attributes is a disaster; if for no other reason than it supports the mind set they don't have to follow project policies.

-Louie

"I have a nagging memory of an older version of DOORS had problems with that dialog. "

I found it does not occur in Ver 9.3.0.0 but occurs in Ver 9.3.0.5 - I have not found when it was fixed yet.

It may also be related to this ticket:

https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014864787&ps=25

"The truth is, in such a scenario one will actually see:
Inherit - true
Change Bars - false
Date - false
History = false

This is because the AttrDef attributes associated with the Affect change bars, Affect change date and Generate history check boxes are defined as nobars, nochanges and nohistory, respectively. In other words, if the boxes are checked, the corresponding attributes are false. Meanwhile, the AttrDef attribute for Inherit value is simply inherit, so if it is checked, it is true."

-Jan